Package com.cisco.pt.impl
Class IPAddressImpl
java.lang.Object
com.cisco.pt.impl.IPAddressImpl
- All Implemented Interfaces:
IPAddress
- Author:
- packettracerexapps@external.cisco.com
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIPAddressImpl(byte[] newBytes) IPAddressImpl(byte byte1, byte byte2, byte byte3, byte byte4) IPAddressImpl(String ipStr) -
Method Summary
-
Field Details
-
IPADDRESS_BYTES
public static final int IPADDRESS_BYTES- See Also:
-
-
Constructor Details
-
IPAddressImpl
public IPAddressImpl(byte byte1, byte byte2, byte byte3, byte byte4) - Parameters:
byte1- bytebyte2- bytebyte3- bytebyte4- byte
-
IPAddressImpl
public IPAddressImpl(byte[] newBytes) - Parameters:
newBytes- byte[]
-
IPAddressImpl
- Parameters:
ipStr- String- Throws:
NumberFormatException
-
-
Method Details
-
setBytes
protected void setBytes(byte[] newBytes) -
toString
-
getDottedQuadString
- Specified by:
getDottedQuadStringin interfaceIPAddress- Returns:
String
-
getHexString
- Specified by:
getHexStringin interfaceIPAddress- Returns:
String
-
getByteArrayValue
public byte[] getByteArrayValue()- Specified by:
getByteArrayValuein interfaceIPAddress- Returns:
- byte array
-
getIntValue
public int getIntValue()- Specified by:
getIntValuein interfaceIPAddress- Returns:
- int
-
toHex
- Parameters:
byteValue- byte- Returns:
String
-
parseIPAddress
- Parameters:
s- String- Returns:
IPAddress
-